package com.tjetc.ioc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author gaoyongxiang
 * @version v1.0
 * @date 2025/9/1
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    @Qualifier("userServiceImpl1")
    private UserService userService;

    @Override
    @Transactional
    public void f() {
        System.out.println("UserServiceImpl执行");
        // 此时这个业务中也存在一个事务 该怎么处理？
        userService.f();
    }
}